<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑Word模板数据区域</title>
    <style>
        *{
            margin : 0;
            padding : 0;
        }
        div{
            position : absolute;
            width : 100%;
            height : 100%;
            overflow: hidden;
        }

    </style>
</head>
<body>
<div  th:utext="${pageoffice}"></div>
<script>
    function Save() {
        pageofficectrl.WebSave();
    }

    function ShowDefineDataRegions() {
        var drDefinedJson = pageofficectrl.word.DataRegionsDefinedAsJson;
        pageofficectrl.ShowHtmlModelessDialog("dataRegionDlg", drDefinedJson, "left=300px;top=390px;width=620px;height=410px;frame:no;");
    }

    function OnPageOfficeCtrlInit() {
        pageofficectrl.AddCustomToolButton("保存", "Save", 1);
        pageofficectrl.AddCustomToolButton("定义数据区域", "ShowDefineDataRegions", 10);
    }

</script>
</body>
</html>